from rest_framework import serializers
from ..models.GlobalTables import *

class GlobalTableCreateSerializer(serializers.ModelSerializer):
    class Meta:
        model = Language
        fields = ["name", "zh_name"]
        

class GlobalTableInfoSerializer(serializers.ModelSerializer):
    class Meta:
        model = Language
        fields = ["uuid", 'name', 'zh_name']